<template>
  <div>
    <h1>父组件属性:{{ xxx }}</h1>
    <button @click="btnClick">修改son内一个属性</button>
    <hr>

    <Son ref="son" />
    <el-form />
    <el-button>123</el-button>

  </div>
</template>
<script>
import Son from './components/son'
export default {
  components: {
    Son
  },
  data() {
    return {
      xxx: 99
    }
  },
  methods: {
    btnClick() {
      this.$refs.son.num++
      // console.log(this.$children)
      console.log(this.$root)
    }
  }
}
</script>
<style>
</style>>
